public class Movie {
    private String id;
    private String name;
    private String director;
    private String actors;
    private String introduction;
    private int duration; // 分钟
    private double rating;

    public Movie(String id, String name, String director, String actors, String introduction, int duration, double rating) {
        this.id = id;
        this.name = name;
        this.director = director;
        this.actors = actors;
        this.introduction = introduction;
        this.duration = duration;
        this.rating = rating;
    }

    // Getters and Setters
    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDirector() {
        return director;
    }

    public void setDirector(String director) {
        this.director = director;
    }

    public String getActors() {
        return actors;
    }

    public void setActors(String actors) {
        this.actors = actors;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public double getRating() {
        return rating;
    }

    public void setRating(double rating) {
        this.rating = rating;
    }
}
